package com.telephone.purchase.mapper;

import com.telephone.purchase.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author fengyingeng
 * @date 2019/9/4 10:36
 * Description:
 */
@Repository
public interface OrderMapper {

    /**
     * 根据手机号查询用户订单记录
     * @return List<Order>
     */
    List<Order> selectList(@Param("phoneNumber") String phoneNumber);

    Long selectGoodId(@Param("packageId") Long packageId);

    String selectGoodUrl(@Param("goodId") Long goodId);

}
